<?php

namespace App\Models;

class AppUser extends Model
{
    protected $fillable = [
        'field_name',
    ];
    protected $table = 'app_user';
    protected $type=[1=>'住客',2=>'员工'];
    public function getTypeAttribute($value)
    {
        return isset($this->type[$value]) ? $this->type[$value] : reset($this->type);
    }
}
